home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 436_01 / inlib.bat < prev    next >
DOS Batch File  |  1994-10-07  |  1KB  |  38 lines

  1. ::INLIB.BAT
  2. echo off
  3. ::Filter out root, shorthand, and (most) invalid path names.
  4. for %%x in (\ . .\ .\\ .. ..\ ..\\) do if "%%x"=="%1" goto :BAD_PATH
  5. if not exist %1nul goto :BAD_PATH
  6. echo Creating inlib.rsp ...
  7. echo -+%1incon       & >  inlib.rsp
  8. echo -+%1inalpha     & >> inlib.rsp
  9. echo -+%1infloat     & >> inlib.rsp
  10. echo -+%1inintgr     & >> inlib.rsp
  11. echo -+%1intempl     & >> inlib.rsp
  12. echo -+%1inutil      & >> inlib.rsp
  13. echo -+%1stringz.obj   >> inlib.rsp
  14. echo/ 
  15. echo Copying INCON header files to %1 ...
  16. echo/ 
  17. echo copy indefs.h  %1indefs.h
  18.      copy indefs.h  %1indefs.h  > nul
  19. echo copy indecl.h  %1indecl.h
  20.      copy indecl.h  %1indecl.h  > nul
  21. echo copy stringz.h %1stringz.h
  22.      copy stringz.h %1stringz.h > nul
  23. echo/ 
  24. echo Creating %1inlib.h ...
  25. echo #include "%1indefs.h"  >  %1inlib.h
  26. echo #include "%1indecl.h"  >> %1inlib.h
  27. echo #include "%1stringz.h" >> %1inlib.h
  28. echo/ 
  29. echo Contents of %1inlib.h:
  30. echo/ 
  31. type %1inlib.h
  32. goto :EXIT
  33. :BAD_PATH
  34. echo Invalid path:  %1
  35. echo/ 
  36. echo Path must be name, ending with '\'
  37. :EXIT
  38.